{% extends "base.html" %}

{% block content %}
<h1>Admin View - All Todos</h1>

{% for todo in all_todos %}
    <div>
        <strong>{{ todo.owner.username }}</strong>: {{ todo.task_text }}
        {% if todo.completed %}(Completed){% endif %}
    </div>
{% endfor %}

<a href="{% url 'todo:todo_list' %}">Back to my list</a>
{% endblock %}
